home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65c+IDA-1.4.4.1 / uiuc / Makefile < prev    next >
Encoding:
Makefile  |  1991-08-15  |  5.3 KB  |  170 lines

  1. # Makefile written by Paul Pomes, University of Illinois,
  2. # Computing Services Office
  3. #
  4. # Copyright (C) 1988 by Paul Pomes and the University of Illinois Board
  5. # of Trustees
  6. #
  7. # This Makefile is distributed in the hope that it will be useful,
  8. # but without any warranty.  No author or distributor accepts
  9. # responsibility to anyone for the consequences of using it or for
  10. # whether it serves any particular purpose or works at all, unless
  11. # s/he says so in writing.
  12. #
  13. # Everyone is granted permission to copy, modify and redistribute
  14. # this Makefile under the following conditions:
  15. #
  16. #    Permission is granted to anyone to make or distribute copies
  17. #    of Makefile source code, either as received or modified, in any
  18. #    medium, provided that all copyright notices, permission and
  19. #    nonwarranty notices are preserved, and that the distributor
  20. #    grants the recipient permission for further redistribution as
  21. #    permitted by this document, and gives him and points out to
  22. #    him an exact copy of this document to inform him of his rights.
  23. #
  24. #    Permission is granted to distribute this Makefile in compiled
  25. #    or executable form under the same conditions applying for
  26. #    source code, provided that either
  27. #    A. it is accompanied by the corresponding machine-readable
  28. #       source code, or
  29. #    B. it is accompanied by a written offer, with no time limit,
  30. #       to give anyone a machine-readable copy of the corresponding
  31. #       source code in return for reimbursement of the cost of
  32. #       distribution.  This written offer must permit verbatim
  33. #       duplication by anyone.
  34. #    C. it is distributed by someone who received only the
  35. #       executable form, and is accompanied by a copy of the
  36. #       written offer of source code which he received along with it.
  37. #
  38. # In other words, you are welcome to use, share and improve this
  39. # Makefile.  You are forbidden to forbid anyone else to use, share
  40. # and improve what you give them.   Help stamp out software-hoarding!
  41. #
  42. # UUCP:     {uunet,convex}!uiucuxc!paul
  43. # Internet, BITNET, CSNET: paul@uxc.cso.uiuc.edu
  44. # US Mail:  UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL  61801
  45.  
  46. # .PREFIXES:    ./RCS
  47. .SUFFIXES:    .0 .8
  48.  
  49. # QI_HOST    The fully qualified domain name of the local qi/ph server
  50. # QI_ALT    The fully qualified domain name of the backup qi/ph server
  51. # QISERVICE    The name of the TCP service at port 105 in /etc/services.
  52. #        Usually "ns" or "csnet-ns"
  53. # DOMAIN    The domain name to append to Reply-To: aliases.  This must
  54. #        be the same as DOMAINMASTER in sendmail.cf
  55. # SYSLOG    Syslog logging facility.
  56.  
  57. #CC     = cc
  58. CC     = gcc -ansi -fpcc-struct-return -fstrength-reduce
  59. DEFS   = -DQI_HOST=\"ns.uiuc.edu\" \
  60.      -DQI_ALT=\"ns1.uiuc.edu\" \
  61.      -DQISERVICE=\"ns\" \
  62.      -DDOMAIN=\"uiuc.edu\" \
  63.      -DSYSLOG=LOG_MAIL
  64. CFLAGS = ${DEFS} -O
  65. FFLAGS = ${DEFS}
  66. PFLAGS = ${DEFS}
  67. LFLAGS = 
  68. YFLAGS = 
  69. LDFLAGS= 
  70. LIBS   = 
  71.  
  72. DESTBIN= /bin
  73. DESTETC= /usr/local/etc
  74. DESTLIB= /usr/lib/mail
  75. CAT8DIR = /usr/local/man/cat8
  76. DOCDIR = /usr/local/doc
  77.  
  78. HDRS   =
  79. SRCS   = uucp-queue.c getpath.c misc.c phquery.c
  80. OBJS   = uucp-queue.o getpath.o misc.o phquery.o
  81. OTHERS = Makefile README uucp-queue.8 phquery.8
  82. VERS   = 
  83.  
  84. .8.0:
  85.     /usr/man/manroff $*.8 > $*.0
  86.  
  87. all:    phquery # uucp-queue
  88.  
  89. uucp-queue:    uucp-queue.o getpath.o misc.o
  90.     ${CC} -o uucp-queue ${LDFLAGS} uucp-queue.o getpath.o misc.o -ldbm
  91.  
  92. # If your /lib/libc.a doesn't have mkstemp(), copy ../support/mktemp.c to this
  93. # directory and insert into the SRCS/OBJS list above.  Also add mktemp.o below.
  94. phquery:    phquery.o 
  95.     $(CC) -o phquery ${LDFLAGS} phquery.o $(LIBS)
  96.  
  97. install:    uucp-queue phquery uucp-queue.0 phquery.0
  98.     install -s uucp-queue ${DESTLIB}
  99.     install -s -o daemon -m 4511 phquery {DESTLIB}/phquery
  100.     install -c -m 444 uucp-queue.0 ${CAT8DIR}/uucp-queue.0
  101.     install -c -m 444 phquery.0 ${CAT8DIR}/phquery.0
  102.  
  103. uninstall:    /tmp
  104.     rm -f ${DESTLIB}/uucp-queue ${DESTLIB}/phquery \
  105.         ${CAT8DIR}/uucp-queue.0 ${CAT8DIR}/phquery.0
  106.  
  107. lint:    ${HDRS} ${SRCS}
  108.     lint -chpb ${DEFS} phquery.c
  109. #    lint -habx ${DEFS} uucp-queue.c getpath.c misc.c
  110.  
  111. shar:    ${HDRS} ${SRCS} ${OTHERS}
  112.     shar ${HDRS} ${SRCS} ${OTHERS} > uucp-queue.shar
  113.  
  114. tags:    ${HDRS} ${SRCS}
  115.     ctags ${HDRS} ${SRCS}
  116.  
  117. clean:
  118.     @echo "Removing object and junk files."
  119.     rm -f uucp-queue phquery *.o core a.out make.log lint.out \
  120.         Makefile.bak uucp-queue.shar
  121.  
  122. clobber:
  123.     @echo "Removing read-only source files that have RCS parents."
  124.     @echo "Error code 1 indicates last file in SRCS list was not removed."
  125.     @echo "(Which is OK)"
  126.     make clean
  127.     -if [ `whoami` != root ]; then \
  128.        for i in ${HDRS} ${SRCS}; do \
  129.           if [ ! -w $$i ]; then \
  130.              ( if   [ -f $$i,v ];     then rm -f $$i; \
  131.                elif [ -f RCS/$$i,v ]; then rm -f $$i; \
  132.              fi ); \
  133.           else echo $$i "writeable, not removed"; \
  134.           fi; \
  135.        done; \
  136.     else echo "Running \"make clobber\" as root will zap ALL SRCS,\
  137.         RCS'ed or not (not done)."; \
  138.     fi
  139.  
  140. compress:
  141.     make clean
  142.     @echo "Compressing source and RCS files."
  143.     find . -size +2 \( -name \*.h -o -name \*.c -o -name \*.f \
  144.         -o -name \*.p -o -name \*.l -o -name \*.y -o -name \*,v \) \
  145.         -exec compress {} \;
  146.  
  147. uncompress:
  148.     uncompressdir .
  149.  
  150. # RCS stuff
  151.  
  152. ci:        ${HDRS} ${SRCS}
  153.         -ci $?
  154.         @touch ci
  155.  
  156. coall:
  157.         co -l ${HDRS} ${SRCS}
  158.  
  159. update:
  160.         ci -sDist -u -f${VERS} ${HDRS} ${SRCS}
  161.         @touch ci
  162.  
  163. depend:
  164.     mkdep ${DEFS} ${SRCS}
  165.  
  166. # DO NOT DELETE THIS LINE -- mkdep uses it.
  167. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  168.  
  169. # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  170.